package com.contacts.taopiaopiao;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyStaticReceiver  extends BroadcastReceiver{

    private static final String ACTION = "com.zxj.receive,PLUGIN_ACTION";

    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context,"我是插件，收到宿主的消息，静态注册的广播  收到宿主的消息！",Toast.LENGTH_SHORT).show();
        context.sendBroadcast(new Intent(ACTION));
    }
}
